package com.nowoe.data.config;

import com.nowoe.data.statement.MapperStatement;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * @author 倚栏听风 2023/9/14 15:30
 * 全局配置文件
 */
public class Configuration {
    /**
     * 数据源
     */
    private DataSource dataSource;
    /**
     * MapperStatement集合
     */

    private final Map<String, MapperStatement> mapperStatementMap = new HashMap<>();

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MapperStatement> getMapperStatementMap() {
        return mapperStatementMap;
    }

}
